<?php
class Admin_Form_Email extends Zend_Form
{
    public function init()
    {
       //$request = new Zend_Controller_Request_Http();
        $this->setMethod('post');
        $this->setName('email');
        $this->setAction('');
        
        $this->addElement('text','host',array(
            'label' => "host",
            'required' => true
                   
        ));
        
          $this->addElement('text','adres',array(
            'label' => "adres e-mail",
            'required' => true
                   
        ));
          
       
             $this->addElement('text','pass',array(
            'label' => "hasło",
            'required' => true
                   
        ));
             
            $this->addElement('text','port',array(
            'label' => "port",
            'required' => true
                   
        ));
           
            $this->addElement('text','title',array(
            'label' => "tytul wiadomości",
            'required' => true
                   
        ));
            
             $this->addElement('select','smtp_safety',array(
            'label' => "tryb szyfrowania",
            'multiOptions' => array(
        'ssl' => 'SSL',
        'tls' => 'TLS',
        ),
            'required' => true
                   
        ));
           
             
             $this->addElement('submit','submit',array(
            'label' => "Wyślij"
            
        ));
             
             
    }
}
?>